package edu.nwpu.zya.coreops.modules.alert.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * 
 * @author zhouyuang
 * @email 742025491@qq.com
 * @date 2022-04-19 19:39:13
 */
@Data
@TableName("alert_description")
public class DescriptionEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId
	private Long id;
	/**
	 * 告警规则id
	 */
	private Long ruleId;
	/**
	 * 指标id
	 */
	private Long metricId;
	/**
	 * 指标聚合类型：0平均值，1最小值，2最大值
	 */
	private Integer aggType;
	/**
	 * 触发告警所需的的周期数
	 */
	private Integer period;
	/**
	 * 比较类型 > ,<, =, >= ,<=, !=
	 */
	private String compareType;
	/**
	 * 告警阈值大小
	 */
	private String threshold;

}
